package com.xyrl.project.common.store.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
* @className StoreLicense.java
* @company 重庆星纭融链科技公司
* @author 徐恩源
* @version 1.0
* @date 2019-12-30 10:32:48
* @Description 营业执照实体类
*/
@Data
@TableName("t_store_license")
@ApiModel(value="StoreLicense对象", description="营业执照")
public class StoreLicense {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "商户id")
    @NotNull(message = "商户id不能为空")
    private Long id;

    @ApiModelProperty(value = "营业执照路径")
    @NotBlank(message = "营业执照路径不能为空")
    @Length(min = 1, max =255, message = "营业执照路径必须在{min}~{max}字符之间")
    private String path;

    @ApiModelProperty(value = "营业执照编码")
    @NotBlank(message = "营业执照编码不能为空")
    @Length(min = 1, max =32, message = "营业执照编码必须在{min}~{max}字符之间")
    private String code;

    @ApiModelProperty(value = "企业名称")
    @NotBlank(message = "企业名称不能为空")
    @Length(min = 1, max =128, message = "企业名称必须在{min}~{max}字符之间")
    private String name;

    @ApiModelProperty(value = "营业执照类型")
    @NotBlank(message = "营业执照类型不能为空")
    @Length(min = 1, max =24, message = "营业执照类型必须在{min}~{max}字符之间")
    private String type;

    @ApiModelProperty(value = "法人")
    @NotBlank(message = "法人不能为空")
    @Length(min = 1, max =32, message = "法人必须在{min}~{max}字符之间")
    private String legalPerson;

    @ApiModelProperty(value = "注册资本")
    @NotBlank(message = "注册资本不能为空")
    @Length(min = 1, max =24, message = "注册资本必须在{min}~{max}字符之间")
    private String registeredCapital;

    @ApiModelProperty(value = "成立时间")
    @NotBlank(message = "成立时间不能为空")
    @Length(min = 1, max =12, message = "成立时间必须在{min}~{max}字符之间")
    private String foundedTime;

    @ApiModelProperty(value = "经营范围")
    @NotBlank(message = "经营范围不能为空")
    @Length(min = 1, max =65535, message = "经营范围必须在{min}~{max}字符之间")
    private String businessScope;

    @ApiModelProperty(value = "创建人")
    private Long createUserId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "数据版本")
    private Integer version;


}
